﻿namespace EFS.RC.CC.Messages
{
	/// Error message class
	public class Error : EFS.RC.CC.Messages.Message
	{
		/// Implicit constructor: used for XML Serialization
		public Error()
		{
		}

		/// Explicit constructor
		public Error(System.String text)
		{
			this.Text = text;
		}

		/// Property Text: Get, Set
		public System.String Text;

		/// Serialize
		public override void Serialize(EFS.Common.Serialization.XmlWriter xmlWriter)
		{
			// write
			xmlWriter.Write("Text", Text);
		}

		/// Deserialize
		public override void Deserialize(EFS.Common.Serialization.XmlReader xmlReader)
		{
			// read
			xmlReader.Read("Text", ref Text);
		}
	}
}